package com.linkage.order.repository;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.linkage.order.pojo.Order;
/**
 * 
 * @author XiaMingYu
 *
 */
@Repository
public interface OrderRepository {
	public List<Order> queryAll();
	public void saveOrder(Order order);
	public void deleteOrder(String orderId);
	public Order findOrderById(String orderId);
	public void payOrder(String orderId);
	public double calTotal(int userId ,int bookIdquantity );
	public void confirm(Order order);
	//public OrderLine findOrderFormBookById(int orderFormBookId);
	public Order loadOneOrder(String orderId);
}
